<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RMH.Entities.OccupancyReportResult>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Census Report
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Census Report</h2>

    <table>
        <tr>
			<th>
				Month
			</th>
            <th>
                Total Nights of Capacity
            </th>
            <th>
                Total Nights Occupied
            </th>
            <th>
                Capacity Percentage
            </th>
        </tr>

    <% foreach (var item in Model.RoomMonths) { %>
    
        <tr>
            <td>
                <%= item.Month == null ? string.Empty : Html.Encode(item.Month) %>
            </td>
            <td>
                <%= Html.Encode(item.StayTotalCapacity) %>
            </td>
            <td>
                <%= Html.Encode(item.StayActual) %>
            </td>
            <td>
                <%= Html.Encode(item.StayUtilization) %>
            </td>
        </tr>
    
    <% } %>

    </table>


</asp:Content>

